package com.heimo.babyage;

import android.graphics.Typeface;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.TextView;

public class WelcomeActivity extends BasicActivity {
	private static final String TAG = "WelcomeActivity";
	
	@Override
	public boolean onPrepareOptionsMenu(Menu menu) {
		super.onPrepareOptionsMenu(menu);
		for(int i = 0 ; i<menu.size();i++){
			MenuItem item = menu.getItem(i);
			if(item.getItemId() == R.id.action_sponsor){
				item.setVisible(true);
			}
		}
		return true;
	}
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_welcome);

		Typeface tf = Typeface.createFromAsset(getAssets(),
				"fonts/orbitron-bold.otf");
		TextView dobLab = (TextView) findViewById(R.id.title);
		if(tf!=null){
			dobLab.setTypeface(tf);
		}
	}

	public void fnClose(View v) {
		this.fnExit();
	}

	@Override
	public void onPause() {
		super.onPause();
		this.fnExit();
	}

	@Override
	public void onStop() {
		super.onStop();
		this.fnExit();
	}
}
